CRPEngine::GetVersion

This method returns the version number of the Crystal Report Engine DLL (CRPE32.DLL) or the version of the Report Engine itself. The high-order byte is the major version number and the low-order byte is the minor version number.

This method can be used whenever you build functionality into a report that may not be available in earlier versions of the Crystal Report Engine and you need to verify the version number first. The function can be a handy safeguard for users who have more than one version of the Crystal Report Engine with the older version earlier in the path than the new version.

Syntax

GetVersion (versionRequested SMALLINT) RETURNING SMALLINT

Parameter

versionRequested

Specifies whether the version number of the Crystal Report Engine or the Report Engine DLL is being requested. Possible values are:

Value Meaning


PEP_GV_DLL

Returns the version of the DLL.


PEP_GV_ENGINE

Returns the version of the Crystal Report Engine.

Returns

The version number of the currently used Crystal Report Engine or Report Engine DLL.

Related Topics

PEGetVersion



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com